< previous page page_260 next page >

Page 260
z0280-01.gif
Figure 9.7
Two points connected by a Hermite curve.
that have very little in common. This creates a sequence of images that transforms one image into another that may be very little like the first. Creating such a sequence is called morphing.
The data file Morph.twe contains two key frames. One shows a truck, and the other shows a plane. Corresponding shapes in the drawings contain the same number of points. For example, the main body of both the truck and plane contain 32 points.
The points are arranged in the two frames in generally the same order. The first point in both the truck and plane bodies is at the lower left. The other points proceed counterclockwise around the two figures. Keeping the points approximately lined up allows tweening to transform the first shape into the second without major twisting and tearing.
Load the file Morph.twe in either tweening program: TweenEnd or TweenSmo. Create tweens, and run the animation to morph the truck into the plane. Because the two key frames have little in common, this animation looks best if you create a lot of tweens. If you have a fast computer, create 50 tweens and run the animation at 50 frames per second. If this animation is too slow on your computer, try again with fewer tweens until your computer can display them all in about one second.
z0280-02.gif
Figure 9.8
Connecting two Hermite curves smoothly.

 
< previous page page_260 next page >